#ifndef __CAN_H
#define __CAN_H	 

#include "typedef.h"

struct CanMsgRx{
    uint32_t id;
    uint8_t len;
    uint8_t data[8];
};


int32_t can1_init(void); //CAN初始化
void can1_send_msg(uint32_t id, const uint8_t* msg, uint32_t len);						//发送数据
int32_t can1_rec_msg(struct CanMsgRx *msg);							//接收数据

#endif

















